package view

import (
	"github.com/labstack/echo"
	"src/controller"
)

func InitForumpostView(Forumpost *echo.Group) {
	Forumpost.POST("", controller.CreatForumpost)
	Forumpost.DELETE("", controller.DeleteForumpost)
	Forumpost.GET("", controller.GetForumpost)
	Forumpost.GET("/list", controller.GetForumpost_Notoken)
	Forumpost.POST("/action/star", controller.StarForumpost)
	Forumpost.POST("/action/recommend", controller.RecommendForumpost)
	Forumpost.POST("/action/share", controller.ShareForumpost)
	Forumpost.POST("/action/tipoff", controller.TipoffForumpost)
	Forumpost.GET("/id", controller.GetForumpostByid)
	Forumpost.GET("/userid", controller.GetForumpostByUserid)

	Forumpost.POST("/test", controller.CreatForumpostTest)
}
